<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: WebSocketConnection.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">WebSocketConnection.h</div></div>
</div><!--header-->
<div class="contents">
<a href="WebSocketConnection_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &lt;json/value.h&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#include &lt;<a class="code" href="HttpTypes_8h.html">drogon/HttpTypes.h</a>&gt;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#include &lt;trantor/net/InetAddress.h&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#include &lt;trantor/utils/NonCopyable.h&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedrogon.html">drogon</a></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>{</div>
<div class="foldopen" id="foldopen00027" data-start="{" data-end="};">
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0d">   27</a></span><span class="keyword">enum class</span> <a class="code hl_enumeration" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0d">CloseCode</a></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span>{</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>    <span class="comment">/*1000 indicates a normal closure, meaning that the purpose for which the</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="comment">       connection was established has been fulfilled.*/</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0daf25231f601cbfeb994d10ebd31da93c0">kNormalClosure</a> = 1000,</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>    <span class="comment">/*1001 indicates that an endpoint is &quot;going away&quot;, such as a server going</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span><span class="comment">       down or a browser having navigated away from a page.*/</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0da365650299bf2267717fcc9e2b4677f38">kEndpointGone</a> = 1001,</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>    <span class="comment">/*1002 indicates that an endpoint is terminating the connection due to a</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="comment">       protocol error.*/</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0da343ccf76d554b536027071d52228f541">kProtocolError</a> = 1002,</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>    <span class="comment">/*1003 indicates that an endpoint is terminating the connection because it</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><span class="comment">       has received a type of data it cannot accept (e.g., an endpoint that</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="comment">       understands only text data MAY send this if it receives a binary</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="comment">       message).*/</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0dafd2195ec2b2a601a09d9e40b0d71323a">kInvalidMessage</a> = 1003,</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>    <span class="comment">/*1005 is a reserved value and MUST NOT be set as a status code in a Close</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="comment">       control frame by an endpoint.  It is designated for use in applications</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="comment">       expecting a status code to indicate that no status code was actually</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="comment">       present.*/</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4a35c3ace1970663a16e5c65baa5941b13">kNone</a> = 1005,</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    <span class="comment">/*1006 is a reserved value and MUST NOT be set as a status code in a Close</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span><span class="comment">       control frame by an endpoint.  It is designated for use in applications</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span><span class="comment">       expecting a status code to indicate that the connection was closed</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="comment">       abnormally, e.g., without sending or receiving a Close control frame.</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="comment">    */</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0daa41bf1742fef0ea406fa6f98e63bf8dd">kAbnormally</a> = 1006,</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>    <span class="comment">/*1007 indicates that an endpoint is terminating the connection because it</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span><span class="comment">       has received data within a message that was not consistent with the type</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span><span class="comment">       of the message (e.g., non-UTF-8 [RFC3629] data within a text message).*/</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0da7721157a5c038864731a174cc3b7cd5b">kWrongMessageContent</a> = 1007,</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>    <span class="comment">/*1008 indicates that an endpoint is terminating the connection because it</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span><span class="comment">       has received a message that violates its policy.  This is a generic</span></div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span><span class="comment">       status code that can be returned when there is no other more suitable</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span><span class="comment">       status code (e.g., 1003 or 1009) or if there is a need to hide specific</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span><span class="comment">       details about the policy.</span></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span><span class="comment">    */</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0da02cb461f92ab2632f476803b49f3dc93">kViolation</a> = 1008,</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>    <span class="comment">/*1009 indicates that an endpoint is terminating the connection because it</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span><span class="comment">       has received a message that is too big for it to process.*/</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0daae57bfc4803b087c1fc70c069b5c0377">kMessageTooBig</a> = 1009,</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>    <span class="comment">/*1010 indicates that an endpoint (client) is terminating the connection</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span><span class="comment">       because it has expected the server to negotiate one or more extension,</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span><span class="comment">       but the server didn&#39;t return them in the response message of the</span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span><span class="comment">       WebSocket handshake.  The list of extensions that are needed SHOULD</span></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span><span class="comment">       appear in the /reason/ part of the Close frame. Note that this status</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span><span class="comment">       code is not used by the server, because it can fail the WebSocket</span></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span><span class="comment">       handshake instead.*/</span></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0dafffb2fc7cbd8037c948bb7cbb4c402ab">kNeedMoreExtensions</a> = 1010,</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>    <span class="comment">/*1011 indicates that a server is terminating the connection because it</span></div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span><span class="comment">       encountered an unexpected condition that prevented it from fulfilling the</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span><span class="comment">       request.*/</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0daae4bc00c63c8a9d156fe443d546abc0d">kUnexpectedCondition</a> = 1011,</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>    <span class="comment">/*1015 is a reserved value and MUST NOT be set as a status code in a Close</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span><span class="comment">       control frame by an endpoint.  It is designated for use in applications</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span><span class="comment">       expecting a status code to indicate that the connection was closed due to</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span><span class="comment">       a failure to perform a TLS handshake (e.g., the server certificate can&#39;t</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span><span class="comment">       be verified).*/</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0da6b6fe90be72e9d8edc2526bff63cadeb">kTLSFailed</a> = 1015</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>};</div>
</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span> </div>
<div class="foldopen" id="foldopen00092" data-start="{" data-end="};">
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html">   92</a></span><span class="keyword">class </span><a class="code hl_class" href="classdrogon_1_1WebSocketConnection.html">WebSocketConnection</a></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>{</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>  <span class="keyword">public</span>:</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#a3ea9882baad127a8fee5309800415e86">   95</a></span>    <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#a3ea9882baad127a8fee5309800415e86">WebSocketConnection</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#ae1498047678574801a8de8bc0c7028f6">   96</a></span>    <span class="keyword">virtual</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#ae1498047678574801a8de8bc0c7028f6">~WebSocketConnection</a>(){};</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#ab4d7fa899a69d14c5705c70b1eed1f2b">  105</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#ab4d7fa899a69d14c5705c70b1eed1f2b">send</a>(</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>        <span class="keyword">const</span> <span class="keywordtype">char</span> *msg,</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>        uint64_t len,</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>        <span class="keyword">const</span> <a class="code hl_enumeration" href="namespacedrogon.html#a60c960a4500d47d200b72356dfcd06e8">WebSocketMessageType</a> type = <a class="code hl_enumvalue" href="namespacedrogon.html#a60c960a4500d47d200b72356dfcd06e8a9dffbf69ffba8bc38bc4e01abf4b1675">WebSocketMessageType::Text</a>) = 0;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#a6a2208cb031ad11cc59ac12cdbb3c5b8">  116</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#a6a2208cb031ad11cc59ac12cdbb3c5b8">send</a>(</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>        std::string_view msg,</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>        <span class="keyword">const</span> <a class="code hl_enumeration" href="namespacedrogon.html#a60c960a4500d47d200b72356dfcd06e8">WebSocketMessageType</a> type = <a class="code hl_enumvalue" href="namespacedrogon.html#a60c960a4500d47d200b72356dfcd06e8a9dffbf69ffba8bc38bc4e01abf4b1675">WebSocketMessageType::Text</a>) = 0;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#a068db7c076e16cdee081aecae6c0e38e">  126</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#a068db7c076e16cdee081aecae6c0e38e">sendJson</a>(</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>        <span class="keyword">const</span> Json::Value &amp;json,</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>        <span class="keyword">const</span> <a class="code hl_enumeration" href="namespacedrogon.html#a60c960a4500d47d200b72356dfcd06e8">WebSocketMessageType</a> type = <a class="code hl_enumvalue" href="namespacedrogon.html#a60c960a4500d47d200b72356dfcd06e8a9dffbf69ffba8bc38bc4e01abf4b1675">WebSocketMessageType::Text</a>) = 0;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span> </div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#adf1374a1f2ef676bffd794af75cf262d">  131</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> trantor::InetAddress &amp;<a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#adf1374a1f2ef676bffd794af75cf262d">localAddr</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#a842b28c425db0ffe844f16afa5a999eb">  134</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> trantor::InetAddress &amp;<a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#a842b28c425db0ffe844f16afa5a999eb">peerAddr</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span> </div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#aa97345346483459ad520ed8fccdb21ac">  137</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#aa97345346483459ad520ed8fccdb21ac">connected</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span> </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#ada8616e96b90a5e3b12bbc29266c7d3d">  140</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#ada8616e96b90a5e3b12bbc29266c7d3d">disconnected</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#a0a95cfa8e061aa94436fb2f217e4e1eb">  149</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#a0a95cfa8e061aa94436fb2f217e4e1eb">shutdown</a>(<span class="keyword">const</span> <a class="code hl_enumeration" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0d">CloseCode</a> code = <a class="code hl_enumvalue" href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0daf25231f601cbfeb994d10ebd31da93c0">CloseCode::kNormalClosure</a>,</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>                          <span class="keyword">const</span> std::string &amp;reason = <span class="stringliteral">&quot;&quot;</span>) = 0;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span> </div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#abdaebe4ad76827244e39c46be9992eb4">  153</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#abdaebe4ad76827244e39c46be9992eb4">forceClose</a>() = 0;</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span> </div>
<div class="foldopen" id="foldopen00160" data-start="{" data-end="}">
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#a3cae4475ea82225e893229bd2cf31105">  160</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#a3cae4475ea82225e893229bd2cf31105">setContext</a>(<span class="keyword">const</span> std::shared_ptr&lt;void&gt; &amp;context)</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span>    {</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>        contextPtr_ = context;</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>    }</div>
</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span> </div>
<div class="foldopen" id="foldopen00170" data-start="{" data-end="}">
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#a23e95a9abccdda9a1fbaa7aff81d30ef">  170</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#a23e95a9abccdda9a1fbaa7aff81d30ef">setContext</a>(std::shared_ptr&lt;void&gt; &amp;&amp;context)</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span>    {</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span>        contextPtr_ = std::move(context);</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>    }</div>
</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span> </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span>    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00182" data-start="{" data-end="}">
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#ad1f9c4a52807041d7087d61c713b960d">  182</a></span>    std::shared_ptr&lt;T&gt; <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#ad1f9c4a52807041d7087d61c713b960d">getContext</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno">  183</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span>        <span class="keywordflow">return</span> std::static_pointer_cast&lt;T&gt;(contextPtr_);</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span>    }</div>
</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span> </div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno">  193</span>    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00194" data-start="{" data-end="}">
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#a1e28b3411ec3f64f72bbc1115c0022f3">  194</a></span>    T &amp;<a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#a1e28b3411ec3f64f72bbc1115c0022f3">getContextRef</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span>        <span class="keywordflow">return</span> *(<span class="keyword">static_cast&lt;</span>T *<span class="keyword">&gt;</span>(contextPtr_.get()));</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span>    }</div>
</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span> </div>
<div class="foldopen" id="foldopen00200" data-start="{" data-end="}">
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#a6927796c7cdc757ebefdbbcd1101d638">  200</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#a6927796c7cdc757ebefdbbcd1101d638">hasContext</a>()</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span>    {</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>        <span class="keywordflow">return</span> (<span class="keywordtype">bool</span>)contextPtr_;</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span>    }</div>
</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span> </div>
<div class="foldopen" id="foldopen00206" data-start="{" data-end="}">
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#a5106f9cab32766a2761e58fad73eacd1">  206</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#a5106f9cab32766a2761e58fad73eacd1">clearContext</a>()</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span>    {</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span>        contextPtr_.reset();</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span>    }</div>
</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span> </div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#a5c4815b05f8cbafe3ae1f1967c831b1b">  222</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#a5c4815b05f8cbafe3ae1f1967c831b1b">setPingMessage</a>(</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span>        <span class="keyword">const</span> std::string &amp;message,</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno">  224</span>        <span class="keyword">const</span> std::chrono::duration&lt;double&gt; &amp;interval) = 0;</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno">  225</span> </div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"><a class="line" href="classdrogon_1_1WebSocketConnection.html#a9477289404894c6ed4d434518f82ab9e">  229</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1WebSocketConnection.html#a9477289404894c6ed4d434518f82ab9e">disablePing</a>() = 0;</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno">  230</span> </div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno">  231</span>  <span class="keyword">private</span>:</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span>    std::shared_ptr&lt;void&gt; contextPtr_;</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno">  233</span>};</div>
</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno">  234</span> </div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a963450dc03553ccb1c4bbc8479404eb9">  235</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a963450dc03553ccb1c4bbc8479404eb9">WebSocketConnectionPtr</a> = std::shared_ptr&lt;WebSocketConnection&gt;;</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno">  236</span>}  <span class="comment">// namespace drogon</span></div>
<div class="ttc" id="aHttpTypes_8h_html"><div class="ttname"><a href="HttpTypes_8h.html">HttpTypes.h</a></div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html">drogon::WebSocketConnection</a></div><div class="ttdoc">The WebSocket connection abstract class.</div><div class="ttdef"><b>Definition</b> WebSocketConnection.h:93</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_a068db7c076e16cdee081aecae6c0e38e"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#a068db7c076e16cdee081aecae6c0e38e">drogon::WebSocketConnection::sendJson</a></div><div class="ttdeci">virtual void sendJson(const Json::Value &amp;json, const WebSocketMessageType type=WebSocketMessageType::Text)=0</div><div class="ttdoc">Send a message to the peer</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_a0a95cfa8e061aa94436fb2f217e4e1eb"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#a0a95cfa8e061aa94436fb2f217e4e1eb">drogon::WebSocketConnection::shutdown</a></div><div class="ttdeci">virtual void shutdown(const CloseCode code=CloseCode::kNormalClosure, const std::string &amp;reason=&quot;&quot;)=0</div><div class="ttdoc">Shut down the write direction, which means that further send operations are disabled.</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_a1e28b3411ec3f64f72bbc1115c0022f3"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#a1e28b3411ec3f64f72bbc1115c0022f3">drogon::WebSocketConnection::getContextRef</a></div><div class="ttdeci">T &amp; getContextRef() const</div><div class="ttdoc">Get the custom data reference from the connection.</div><div class="ttdef"><b>Definition</b> WebSocketConnection.h:194</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_a23e95a9abccdda9a1fbaa7aff81d30ef"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#a23e95a9abccdda9a1fbaa7aff81d30ef">drogon::WebSocketConnection::setContext</a></div><div class="ttdeci">void setContext(std::shared_ptr&lt; void &gt; &amp;&amp;context)</div><div class="ttdoc">Set custom data on the connection</div><div class="ttdef"><b>Definition</b> WebSocketConnection.h:170</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_a3cae4475ea82225e893229bd2cf31105"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#a3cae4475ea82225e893229bd2cf31105">drogon::WebSocketConnection::setContext</a></div><div class="ttdeci">void setContext(const std::shared_ptr&lt; void &gt; &amp;context)</div><div class="ttdoc">Set custom data on the connection</div><div class="ttdef"><b>Definition</b> WebSocketConnection.h:160</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_a3ea9882baad127a8fee5309800415e86"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#a3ea9882baad127a8fee5309800415e86">drogon::WebSocketConnection::WebSocketConnection</a></div><div class="ttdeci">WebSocketConnection()=default</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_a5106f9cab32766a2761e58fad73eacd1"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#a5106f9cab32766a2761e58fad73eacd1">drogon::WebSocketConnection::clearContext</a></div><div class="ttdeci">void clearContext()</div><div class="ttdoc">Clear the context.</div><div class="ttdef"><b>Definition</b> WebSocketConnection.h:206</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_a5c4815b05f8cbafe3ae1f1967c831b1b"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#a5c4815b05f8cbafe3ae1f1967c831b1b">drogon::WebSocketConnection::setPingMessage</a></div><div class="ttdeci">virtual void setPingMessage(const std::string &amp;message, const std::chrono::duration&lt; double &gt; &amp;interval)=0</div><div class="ttdoc">Set the heartbeat(ping) message sent to the peer.</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_a6927796c7cdc757ebefdbbcd1101d638"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#a6927796c7cdc757ebefdbbcd1101d638">drogon::WebSocketConnection::hasContext</a></div><div class="ttdeci">bool hasContext()</div><div class="ttdoc">Return true if the context is set by user.</div><div class="ttdef"><b>Definition</b> WebSocketConnection.h:200</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_a6a2208cb031ad11cc59ac12cdbb3c5b8"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#a6a2208cb031ad11cc59ac12cdbb3c5b8">drogon::WebSocketConnection::send</a></div><div class="ttdeci">virtual void send(std::string_view msg, const WebSocketMessageType type=WebSocketMessageType::Text)=0</div><div class="ttdoc">Send a message to the peer</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_a842b28c425db0ffe844f16afa5a999eb"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#a842b28c425db0ffe844f16afa5a999eb">drogon::WebSocketConnection::peerAddr</a></div><div class="ttdeci">virtual const trantor::InetAddress &amp; peerAddr() const =0</div><div class="ttdoc">Return the remote IP address and port number of the connection</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_a9477289404894c6ed4d434518f82ab9e"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#a9477289404894c6ed4d434518f82ab9e">drogon::WebSocketConnection::disablePing</a></div><div class="ttdeci">virtual void disablePing()=0</div><div class="ttdoc">Disable sending ping messages to the peer.</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_aa97345346483459ad520ed8fccdb21ac"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#aa97345346483459ad520ed8fccdb21ac">drogon::WebSocketConnection::connected</a></div><div class="ttdeci">virtual bool connected() const =0</div><div class="ttdoc">Return true if the connection is open</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_ab4d7fa899a69d14c5705c70b1eed1f2b"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#ab4d7fa899a69d14c5705c70b1eed1f2b">drogon::WebSocketConnection::send</a></div><div class="ttdeci">virtual void send(const char *msg, uint64_t len, const WebSocketMessageType type=WebSocketMessageType::Text)=0</div><div class="ttdoc">Send a message to the peer</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_abdaebe4ad76827244e39c46be9992eb4"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#abdaebe4ad76827244e39c46be9992eb4">drogon::WebSocketConnection::forceClose</a></div><div class="ttdeci">virtual void forceClose()=0</div><div class="ttdoc">Close the connection</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_ad1f9c4a52807041d7087d61c713b960d"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#ad1f9c4a52807041d7087d61c713b960d">drogon::WebSocketConnection::getContext</a></div><div class="ttdeci">std::shared_ptr&lt; T &gt; getContext() const</div><div class="ttdoc">Get custom data from the connection</div><div class="ttdef"><b>Definition</b> WebSocketConnection.h:182</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_ada8616e96b90a5e3b12bbc29266c7d3d"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#ada8616e96b90a5e3b12bbc29266c7d3d">drogon::WebSocketConnection::disconnected</a></div><div class="ttdeci">virtual bool disconnected() const =0</div><div class="ttdoc">Return true if the connection is closed</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_adf1374a1f2ef676bffd794af75cf262d"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#adf1374a1f2ef676bffd794af75cf262d">drogon::WebSocketConnection::localAddr</a></div><div class="ttdeci">virtual const trantor::InetAddress &amp; localAddr() const =0</div><div class="ttdoc">Return the local IP address and port number of the connection</div></div>
<div class="ttc" id="aclassdrogon_1_1WebSocketConnection_html_ae1498047678574801a8de8bc0c7028f6"><div class="ttname"><a href="classdrogon_1_1WebSocketConnection.html#ae1498047678574801a8de8bc0c7028f6">drogon::WebSocketConnection::~WebSocketConnection</a></div><div class="ttdeci">virtual ~WebSocketConnection()</div><div class="ttdef"><b>Definition</b> WebSocketConnection.h:96</div></div>
<div class="ttc" id="anamespacedrogon_html"><div class="ttname"><a href="namespacedrogon.html">drogon</a></div><div class="ttdoc">Drogon Test is a minimal effort test framework developed because the major C++ test frameworks doesn'...</div><div class="ttdef"><b>Definition</b> Attribute.h:23</div></div>
<div class="ttc" id="anamespacedrogon_html_a3d8870fa55561abeaf9aaceb8f465d0d"><div class="ttname"><a href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0d">drogon::CloseCode</a></div><div class="ttdeci">CloseCode</div><div class="ttdef"><b>Definition</b> WebSocketConnection.h:28</div></div>
<div class="ttc" id="anamespacedrogon_html_a3d8870fa55561abeaf9aaceb8f465d0da02cb461f92ab2632f476803b49f3dc93"><div class="ttname"><a href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0da02cb461f92ab2632f476803b49f3dc93">drogon::CloseCode::kViolation</a></div><div class="ttdeci">@ kViolation</div></div>
<div class="ttc" id="anamespacedrogon_html_a3d8870fa55561abeaf9aaceb8f465d0da343ccf76d554b536027071d52228f541"><div class="ttname"><a href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0da343ccf76d554b536027071d52228f541">drogon::CloseCode::kProtocolError</a></div><div class="ttdeci">@ kProtocolError</div></div>
<div class="ttc" id="anamespacedrogon_html_a3d8870fa55561abeaf9aaceb8f465d0da365650299bf2267717fcc9e2b4677f38"><div class="ttname"><a href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0da365650299bf2267717fcc9e2b4677f38">drogon::CloseCode::kEndpointGone</a></div><div class="ttdeci">@ kEndpointGone</div></div>
<div class="ttc" id="anamespacedrogon_html_a3d8870fa55561abeaf9aaceb8f465d0da6b6fe90be72e9d8edc2526bff63cadeb"><div class="ttname"><a href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0da6b6fe90be72e9d8edc2526bff63cadeb">drogon::CloseCode::kTLSFailed</a></div><div class="ttdeci">@ kTLSFailed</div></div>
<div class="ttc" id="anamespacedrogon_html_a3d8870fa55561abeaf9aaceb8f465d0da7721157a5c038864731a174cc3b7cd5b"><div class="ttname"><a href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0da7721157a5c038864731a174cc3b7cd5b">drogon::CloseCode::kWrongMessageContent</a></div><div class="ttdeci">@ kWrongMessageContent</div></div>
<div class="ttc" id="anamespacedrogon_html_a3d8870fa55561abeaf9aaceb8f465d0daa41bf1742fef0ea406fa6f98e63bf8dd"><div class="ttname"><a href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0daa41bf1742fef0ea406fa6f98e63bf8dd">drogon::CloseCode::kAbnormally</a></div><div class="ttdeci">@ kAbnormally</div></div>
<div class="ttc" id="anamespacedrogon_html_a3d8870fa55561abeaf9aaceb8f465d0daae4bc00c63c8a9d156fe443d546abc0d"><div class="ttname"><a href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0daae4bc00c63c8a9d156fe443d546abc0d">drogon::CloseCode::kUnexpectedCondition</a></div><div class="ttdeci">@ kUnexpectedCondition</div></div>
<div class="ttc" id="anamespacedrogon_html_a3d8870fa55561abeaf9aaceb8f465d0daae57bfc4803b087c1fc70c069b5c0377"><div class="ttname"><a href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0daae57bfc4803b087c1fc70c069b5c0377">drogon::CloseCode::kMessageTooBig</a></div><div class="ttdeci">@ kMessageTooBig</div></div>
<div class="ttc" id="anamespacedrogon_html_a3d8870fa55561abeaf9aaceb8f465d0daf25231f601cbfeb994d10ebd31da93c0"><div class="ttname"><a href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0daf25231f601cbfeb994d10ebd31da93c0">drogon::CloseCode::kNormalClosure</a></div><div class="ttdeci">@ kNormalClosure</div></div>
<div class="ttc" id="anamespacedrogon_html_a3d8870fa55561abeaf9aaceb8f465d0dafd2195ec2b2a601a09d9e40b0d71323a"><div class="ttname"><a href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0dafd2195ec2b2a601a09d9e40b0d71323a">drogon::CloseCode::kInvalidMessage</a></div><div class="ttdeci">@ kInvalidMessage</div></div>
<div class="ttc" id="anamespacedrogon_html_a3d8870fa55561abeaf9aaceb8f465d0dafffb2fc7cbd8037c948bb7cbb4c402ab"><div class="ttname"><a href="namespacedrogon.html#a3d8870fa55561abeaf9aaceb8f465d0dafffb2fc7cbd8037c948bb7cbb4c402ab">drogon::CloseCode::kNeedMoreExtensions</a></div><div class="ttdeci">@ kNeedMoreExtensions</div></div>
<div class="ttc" id="anamespacedrogon_html_a60c960a4500d47d200b72356dfcd06e8"><div class="ttname"><a href="namespacedrogon.html#a60c960a4500d47d200b72356dfcd06e8">drogon::WebSocketMessageType</a></div><div class="ttdeci">WebSocketMessageType</div><div class="ttdef"><b>Definition</b> HttpTypes.h:214</div></div>
<div class="ttc" id="anamespacedrogon_html_a60c960a4500d47d200b72356dfcd06e8a9dffbf69ffba8bc38bc4e01abf4b1675"><div class="ttname"><a href="namespacedrogon.html#a60c960a4500d47d200b72356dfcd06e8a9dffbf69ffba8bc38bc4e01abf4b1675">drogon::WebSocketMessageType::Text</a></div><div class="ttdeci">@ Text</div></div>
<div class="ttc" id="anamespacedrogon_html_a963450dc03553ccb1c4bbc8479404eb9"><div class="ttname"><a href="namespacedrogon.html#a963450dc03553ccb1c4bbc8479404eb9">drogon::WebSocketConnectionPtr</a></div><div class="ttdeci">std::shared_ptr&lt; WebSocketConnection &gt; WebSocketConnectionPtr</div><div class="ttdef"><b>Definition</b> WebSocketConnection.h:235</div></div>
<div class="ttc" id="anamespacedrogon_html_aeb82de311298c06b27c32eecb1829bb4a35c3ace1970663a16e5c65baa5941b13"><div class="ttname"><a href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4a35c3ace1970663a16e5c65baa5941b13">drogon::StreamErrorCode::kNone</a></div><div class="ttdeci">@ kNone</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
